package com.nefu.editor.core.mapper.provider;

import com.nefu.editor.core.model.User;
import org.apache.ibatis.jdbc.SQL;

/**
 * @author chenchenT
 * @date : 18-11-13
 * @since : java 8
 */
public class CollectsProvider {

    public String selectCollectsByUserSystemId(User user) {
        return new SQL() {
            {
                SELECT("collect_systemId As systemId, user_systemId as userSystemId, article_systemId as articleSystemId, collect_time as time");
                FROM("t_collects");
                WHERE("user_systemId=#{systemId}");
            }
        }.toString();
    }

}
